package com.yxkj.railservicer.bean;

import com.alibaba.fastjson.JSONObject;
import com.yxkj.railservicer.pager.QiangDan;
import com.yxkj.railservicer.util.StringUtil;

/**
 * Created by sunyu on 2017/2/28.
 */

public class QiangDanBean {
    private String first_time;
    private String time;
    private String last_time;
    private String icon;
    private String order;
    //    private int icon;
    private String name;
    private String addressGet;
    private String addressPost;

    public QiangDanBean() {

    }


    public QiangDanBean(JSONObject obj) {
        this.first_time = obj.getString("updateDate");
        if (obj.getString("aboardTime") == null) {
            this.time = "- -";
        } else {
            this.time = StringUtil.getTime(obj.getString("aboardTime"));
        }
        this.last_time = StringUtil.getTime(obj.getString("latestServiceTime"));
        this.icon = obj.getString("merchantLogoUrl");
        this.order = obj.getString("orderNo");
        this.name = obj.getString("merchantName");
        this.addressGet = obj.getString("fromAddress");
        this.addressPost = obj.getString("deliverAddress");


    }

    public String getFirst_time() {
        return first_time;
    }

    public void setFirst_time(String first_time) {
        this.first_time = first_time;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getLast_time() {
        return last_time;
    }

    public void setLast_time(String last_time) {
        this.last_time = last_time;
    }

    //    public int getIcon() {
//        return icon;
//    }
//
//    public void setIcon(int icon) {
//        this.icon = icon;
//    }
    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public String getOrder() {
        return order;
    }

    public void setOrder(String order) {
        this.order = order;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAddressGet() {
        return addressGet;
    }

    public void setAddressGet(String addressGet) {
        this.addressGet = addressGet;
    }

    public String getAddressPost() {
        return addressPost;
    }

    public void setAddressPost(String addressPost) {
        this.addressPost = addressPost;
    }

    @Override
    public String toString() {
        return "QiangDanBean{" +
                "first_time='" + first_time + '\'' +
                ", time='" + time + '\'' +
                ", last_time='" + last_time + '\'' +
                ", icon='" + icon + '\'' +
                ", order='" + order + '\'' +
                ", name='" + name + '\'' +
                ", addressGet='" + addressGet + '\'' +
                ", addressPost='" + addressPost + '\'' +
                '}';
    }
}
